package T;

public class CuboidTest {
    public static void main(String[] args) {
        Cuboid c = new Cuboid();
        c.setHeight(2);
        c.setLength(2.2);
        c.setWidth(3);
        System.out.println("立方体的长宽组成的面积为"+c.area());
        System.out.println("立方体的体积为"+c.volume());

        Rectangular r = new Rectangular();
        r.setLength(2);
        r.setWidth(2);
        System.out.println("长方形的面积为"+r.area());

    }
}
